import request from "@/utils/request";
// 菜单基础URL

const ActivityApi = {
  /**
   *
   * @returns 城市配置列表
   */
  getList(queryParams: any) {
    return request<any>({
      url: "activity/rate/list",
      method: "get",
      params: queryParams,
    });
  },
  //题库列表
  getQuestionList(queryParams: any) {
    return request<any>({
      url: "question/list",
      method: "get",
      params: queryParams,
    });
  },
  //题库编辑
  QuestionEdit(data: any) {
    return request<any>({
      url: "question/edit",
      method: "post",
      data: data,
    });
  },
  edit(data: any) {
    return request<any>({
      url: "activity/rate/edit",
      method: "post",
      data: data,
    });
  },
  //题库删除
  QuestionDel(data: any) {
    return request<any>({
      url: "question/del",
      method: "post",
      data: data,
    });
  },
};

export default ActivityApi;
